home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
BASIC
/
3606.ZIP
/
ASICMAN.EXE
/
TEST1.ASI
< prev
next >
Wrap
Text File
|
1992-05-21
|
1KB
|
65 lines
REM
REM (C)By Charles Peter White 1991
REM
REM For ASIC Compiler version 1.0 and above
REM
REM (C)Part of the Asic-F1 series.
CLS
PRINT"This shows the string on the top line with a flashing cursor on the last"
print"character. The next line shows the RIGHT side of the cursor, which is"
print"set with C$."
print"The last line shows the LEFT side of the cursor, which is set at D$."
print"Top, single character, is the current cursor character. This is Z$."
print""
print"Press ESCape to abort."
A$="This is a test line, so Move The Cursors Left and Right"
A=LEN(A$)
B=A
LOCATE 12,1
PRINT A$;
START:
GOSUB GETAKEY:
IF G=27 THEN FINI:
IF EXTENDED=1 THEN A1:
GOTO START:
A1:
IF G=75 THEN CURLEFT:
IF G=77 THEN CURRIGHT:
GOTO START:
CURLEFT:
IF A<2 THEN START:
A=A-1
GOTO CURLOCATE:
CURRIGHT:
IF A>B THEN START:
A=A+1
GOTO CURLOCATE:
CURLOCATE:
GOSUB DISPLAY:
LOCATE 12,A
PRINT"";
GOTO START:
GETAKEY:
G$=INKEY$
G=ASC(G$)
RETURN
DISPLAY:
C$=MID$(A$,A,B)
REM Change D$=LEFT$(A$,A) for Asci 3.0 and above, if required.
D$=MID$(A$,1,A)
LOCATE 14,1
PRINT C$;
PRINT" "
LOCATE 16,1
PRINT D$;
PRINT" "
Z=A-1
Z$=MID$(A$,A,1)
LOCATE 11,Z
PRINT" ";
PRINT Z$;
PRINT" ";
RETURN
FINI:
END